import request from '@/common/request/request.js'
import config from '@/common/config/config.js';
const http = config.env

//查询新闻列表
export const getNewsList = data => {
	return request({
        url: `${http.baseUrl}/news/pagList`,
		method: 'get',
        data:data
	})
}

//查询新闻分类列表
export const getNewsClassify = data => {
    return request({
        url: `${http.baseUrl}/news/classifyList`,
		method: 'get',
        data:data
	})
}

//搜索新闻详情
export const searchNewsDetail = id => {
	return request({
		url: `${http.baseUrl}/news/details/${id}`,
		method: 'get',
	})
}
